import { observable, action, computed, makeObservable } from "mobx";

export interface storeType {
  switchExam: boolean;
  setSwitchExam(status: boolean): void;
}

class MyStore implements storeType {
  switchExam = true;

  constructor() {
    makeObservable(this, {
      switchExam: observable,
      setSwitchExam: action,
    });
  }

  setSwitchExam(status: boolean) {
    this.switchExam = status;
  }
}
export const store = new MyStore();
